package com.tsinjie.metadata.database.model;

/**
 * Created by LiuXunming on 2014-07-20.
 * 数据库表外键字段
 */
public class ImportColumn extends Column {
    /**
     * 参考表名称
     */
    private String exportTableName;
    /**
     * 参考表字段名称
     */
    private String exportColumnName;

    public String getExportTableName() {
        return exportTableName;
    }

    public void setExportTableName(String exportTableName) {
        this.exportTableName = exportTableName;
    }

    public String getExportColumnName() {
        return exportColumnName;
    }

    public void setExportColumnName(String exportColumnName) {
        this.exportColumnName = exportColumnName;
    }

    @Override
    public String toString() {
        return "ImportColumn{" +
                "columnName='" + columnName + '\'' +
                ", type=" + type +
                ", length=" + length +
                ", nullable=" + nullable +
                ", defaultValue=" + defaultValue +
                ", comment='" + comment + '\'' +
                ", exportTableName='" + exportTableName + '\'' +
                ", exportColumnName='" + exportColumnName + '\'' +
                '}';
    }
}
